# -*- coding: utf-8 -*-
import logging
import os
import sys

# 全局日志格式配置
logging.basicConfig(
    # filename = os.path.join(os.path.join(os.path.dirname(__file__), 'logs'), 'chat.log'),
    stream = sys.stdout,
    level = logging.DEBUG,
    format = "[%(asctime)s - %(module)s-%(lineno)s - %(thread)d - %(levelname)s] - %(message)s",
    datefmt = "%Y-%m-%d %H:%M:%S"
)